'use strict';

var __importDefault =
    (this && this.__importDefault) ||
    function (mod) {
        return mod && mod.__esModule
            ? mod
            : {
                  default: mod
              };
    };

// exports.__esModule = true;

var request_1 = __importDefault(require('./../utils/request.js'));

var request = new request_1['default'](); // type defaultData = {
//     [key: string]: any
// }
// 发现分类分页

exports.findClassPage = function (data) {
    return request.postRequest({
        url: 'find/findClassPage',
        data: data
    });
};

exports.findPage = function (data) {
    return request.postRequest({
        url: 'find/findPage',
        data: data
    });
}; // 发现-列表详情
exports.miniPageQuery = function (data) {
    return request.postRequest({
        url: 'activityChangeMobile/miniPageQuery',
        data: data
    });
}; // 活动-列表详情

// exports.getFindMore = function (id) {
//     return request.postRequest({
//         url: 'find/getFindMore/' + id
//     });
// };
// exports.getFindRead = function (id) {
//     return request.postRequest({
//         url: 'find/read/' + id
//     });
// };


exports.preview = function (id) {
    return request.postRequest({
        url: 'activityChangeMobile/preview?id=' + id
    });
};
exports.addReadNumber = function (id) {
    return request.postRequest({
        url: 'activityChangeMobile/addReadNumber?id=' + id
    });
};




// 咨询详情 
exports.getFindMore = function (data) {
    return request.postRequest({
        url: 'find/getFindMore',
        data:{id: data},
        header: 'form'
    });
};
exports.getFindRead = function (data) {
    return request.postRequest({
        url: 'find/read',
        data:{id: data},
        header: 'form'
    });
};